home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 220 / 220.xpi / chrome / flashgot.jar / content / flashgot / flashgotGalleryBuilder.xul < prev    next >
Encoding:
Extensible Markup Language  |  2010-01-24  |  7.0 KB  |  173 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.  
  4.     FlashGot - a Firefox extension for external download managers integration
  5.     Copyright (C) 2004-2009 Giorgio Maone - g.maone@informaction.com
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation; either version 2 of the License, or
  10.     (at your option) any later version.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  20.  
  21. ***** END LICENSE BLOCK ***** -->
  22.  
  23. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  24.  
  25. <!DOCTYPE overlay [
  26. <!ENTITY % flashgot SYSTEM "chrome://flashgot/locale/flashgot.dtd" >
  27. %flashgot;
  28. <!ENTITY % flashgotFB  SYSTEM "chrome://flashgot/content/en-US/flashgot.dtd" >
  29. %flashgotFB;
  30. ]
  31. >
  32.  
  33. <dialog id="flashgotGalleryBuilder" 
  34.   onload="gFlashGotGB.onload()"
  35.   ondialogaccept="gFlashGotGB.build()"
  36.   title="&flashgotBuildGallery.title;"
  37.     buttons="accept,cancel"
  38.   minwidth="400"
  39.   minheight="400"
  40.   persist="screenX screenY width height"
  41.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  42.   <script type="application/x-javascript" src="flashgotCommon.js"/>
  43.   <script type="application/x-javascript" src="flashgotGalleryBuilder.js"/>
  44.   <commandset>
  45.     <command id="cmd_synchronizeContent" oncommand="gFlashGotGB.synchronizeContent()" />
  46.     <command id="cmd_synchronizePreview" oncommand="gFlashGotGB.synchronizePreview()" />
  47.   </commandset>
  48.   <tabbox flex="1">
  49.   <tabs id="mainTabs">
  50.     <tab id="flashgotGB-url-tab" label="&flashgotGBVariableURLs;"/>
  51.     <tab id="flashgotGB-expr-tab" label="&flashgotGBExpressions;" />
  52.   </tabs>
  53.     <tabpanels flex="1">
  54.       <tabpanel flex="1">
  55.         <vbox flex="1">
  56.           <vbox>
  57.             <description>&flashgotGBSample;</description>
  58.             <description style="font-weight: bold">http://www.xyz.com/gal[080-090;10]/img[1-2].jpg</description>
  59.             <description style="font-weight: bold">http://www.xyz.com/gal[myfunc([1-100])].mpg</description>
  60.             <grid>
  61.               <columns>
  62.                 <column/>
  63.                 <column flex="1"/>
  64.               </columns>
  65.               <rows>
  66.                 <row>
  67.                   <label control="flashgotGB-preview-text" value="&flashgotGBPreview;" width="60px" />
  68.                   <textbox id="flashgotGB-preview-text" 
  69.                     type="autocomplete" autocompletesearch="history,form-history" 
  70.                     maxlength="300" 
  71.                     onchange="gFlashGotGB.validateURLs()"
  72.                     />
  73.                 </row>
  74.                 <row>
  75.                   <spacer />
  76.                   <hbox align="center">
  77.                         <button style="min-width: 0px" image="chrome://global/skin/arrow/arrow-dn-sharp.gif"
  78.                           command="cmd_synchronizeContent" />         
  79.                         <button style="min-width: 0px" image="chrome://global/skin/arrow/arrow-up-sharp.gif"
  80.                           command="cmd_synchronizePreview" />
  81.                          <label value="&flashgotGBSync;"/>
  82.                          <spacer flex="1" />
  83.                   </hbox>
  84.                 </row>
  85.                 <row>
  86.                   <label control="flashgotGB-content-text" value="&flashgotGBContent;" width="60px" />
  87.                   <textbox id="flashgotGB-content-text"
  88.                     type="autocomplete" autocompletesearch="history,form-history" 
  89.                     maxlength="300"
  90.                     onchange="gFlashGotGB.validateURLs()"  
  91.                      />
  92.                 </row>
  93.               </rows>
  94.             </grid>
  95.         
  96.           </vbox>
  97.           <vbox style="padding: 0px; margin: 0px;" flex="1">
  98.         
  99.               <tree id="flashgotGB-urlsTable" aclass="inset" seltype="single"
  100.                  hidecolumnpicker="true"
  101.                  height="136px"
  102.                  minheight="52px"
  103.                  flex="1"
  104.                  onselect="event.target.view.selectionChanged()">
  105.                 
  106.               <treecols>
  107.                 <treecol id="previewCol" label="&flashgotGBPreview;" flex="1" primary="true" />
  108.                 <splitter class="tree-splitter" />
  109.                 <treecol id="contentCol" label="&flashgotGBContent;" flex="1" primary="true" />
  110.               </treecols>
  111.               <treechildren flex="1"/>
  112.             </tree>
  113.               
  114.               
  115.           
  116.             <splitter style="background: transparent; margin: 0px; border-width: 0px" /> 
  117.            
  118.            <iframe id="flashgotGB-urls-preview"  src="about:blank" 
  119.             style="border: 1px solid ThreeDDarkShadow"
  120.             height="136px"
  121.             minheight="60px"
  122.             flex="1"
  123.             />
  124.            
  125.           </vbox>  
  126.           <separator />
  127.            <vbox >
  128.            <hbox flex="1">
  129.            <label control="flashgotGB-referrer-text" value="&flashgotGBReferrer;" />
  130.               <textbox id="flashgotGB-referrer-text" 
  131.                 type="autocomplete" autocompletesearch="history,form-history"  
  132.                 maxlength="255" flex="1" />
  133.             </hbox>
  134.            </vbox>
  135.         </vbox>
  136.       </tabpanel>
  137.       <tabpanel flex="1">
  138.        <hbox style="margin: 0px; padding: 0px"  flex="1" >
  139.         <listbox id="flashgotGB-expr-list" seltype="single" 
  140.           onselect="gFlashGotGB.exprSelected()" flex="1" 
  141.           style="margin: 0px"
  142.           />
  143.         
  144.        <splitter style="background: transparent; margin: 0px; border-width: 0px" /> 
  145.           
  146.         <vbox flex="2" style="margin: 0px; padding: 0px" >
  147.           <description id="flashgotGB-expr-des" value="function fx( /* array */ arguments ) {" />
  148.           <description style="white-space: nowrap;" >// arguments.length = args number, arguments[0] = 1st arg, ...</description>  
  149.           <textbox id="flashgotGB-expr-text" 
  150.             flex="1"
  151.             multiline="true" 
  152.             onchange="gFlashGotGB.exprChanged()"
  153.             onkeypress="gFlashGotGB.exprChanged()"
  154.             onkeydown="gFlashGotGB.exprChanged()"
  155.             onkeyup="gFlashGotGB.exprChanged()"
  156.             style="background: white; color: red; font-family: monospace;"
  157.             wrap="off"
  158.             />
  159.           <description>}</description>
  160.           
  161.        
  162.           <textbox id="flashgotGB-expr-error-text" 
  163.             multiline="true"
  164.             rows="3" readonly="true"
  165.             style="background: white; color: red"
  166.            />
  167.         </vbox>
  168.       </hbox>
  169.       </tabpanel>
  170.     </tabpanels>
  171.   </tabbox>
  172. </dialog>
  173.